package conn_manager

import (
	"fmt"
	"github.com/aceld/zinx/ziface"
)

func MyOnRemoteNotAlive(conn ziface.IConnection) {
	fmt.Println("myOnRemoteNotAlive is Called, connID=", conn.GetConnID(), "remoteAddr = ", conn.RemoteAddr())
	//关闭链接
	conn.Stop()
}

func MyStop(conn ziface.IConnection) {
	fmt.Println("客户端断开连接的处理")
	conn.Stop()
}

func MyStart(conn ziface.IConnection) {
	//role := service.NewPlayer()
	//req, err := http.ReadRequest(bufio.NewReader(conn.GetConnection()))
	//fmt.Println(req, err)
	fmt.Println("客户端连接后处理")
}
